/**CopyRight[1990-2012]<lyc2877@gmail.com>
 */
#include "./include/Thread.h"
CThread::CThread()
{
}

CThread::~CThread()
{
}

int32_t CThread::start_thread() {
  this->work();
  return 0;
}

int32_t CThread::stop_thread() {
  return 0;
}

int CThread::print_time(char* in_szBuf) {
  struct timeval tt;
  gettimeofday(&tt, NULL);

  char szBuf[20] = {0};
  strftime(szBuf, 20, "%H:%M:%S", localtime(&tt.tv_sec));
  snprintf(in_szBuf, 30, "%s:%ld",
           szBuf,
           tt.tv_usec);
  return 0;
}
